package com.activiti6.demo.restfultask;

import com.activiti6.demo.Activiti6DemoApplication;
import org.activiti.engine.RuntimeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Activiti6DemoApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class RestfulDelegateTest {

    @Autowired
    RuntimeService runtimeService;

    @Test
    public void test() {
        runtimeService.startProcessInstanceByKey("restful");
    }

}
